package com.ruoyi.system.ms.msUtils;

import com.mashuai.utils.toolkit.inter.IMsAssert;
import com.ruoyi.common.exception.ServiceException;
import com.ruoyi.common.exception.user.UserNotExistsException;
import org.springframework.stereotype.Component;

/**
 * 断言
 *
 * @Author : mashuai
 * @ClassName: MsAssertImpl
 * @Description: 本项目使用平台的全局异常捕获，会把自定义异常抛到前台
 */
@Component
public class MsAssertImpl implements IMsAssert {
    @Override
    public void throwMsg(String msg) {
        throw new ServiceException(msg);
    }
}
